<template>
  <div class="commentTag">
    <label class="left-title">{{tag}}：</label>
    <div class="xyd-progress-container" :style="`width:${pWidth}px`">
      <div class="xyd-progress-inner" :style="`width:${value/total*pWidth}px`"></div>
    </div>
    <span>{{label}}</span>
  </div>
</template>

<script>
export default {

  name: 'commentTag',

  data() {
    return {

    };
  },
  props: {
    total: Number,
    value: Number,
    label: Number,
    tag: String,
    pWidth: Number
  }
};
</script>

<style lang="scss" scoped>
.commentTag{
  line-height: 30px;
  .left-title{
    width: 72px;
    float: left;
    text-align: right;
  }
  .xyd-progress-container{
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    border: 1px solid #e5e6e7;
    .xyd-progress-inner{
      height: 18px;
      background-color: #EF6401;
    }
  }
}
</style>